﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using devtm.Collections;
using System.Xml.Linq;
using System.Text.RegularExpressions;
using CSharpParser.Structure;
using CustomTypes.Interfaces.Structure;
using System.IO;
using Mono.Cecil;


namespace CSharpParser.CSharpModel
{

    public static class HierarchyParser
    {


        /// <summary>
        /// Parses the specified project.
        /// </summary>
        /// <param name="project">The project.</param>
        /// <param name="source">The source.</param>
        /// <returns></returns>
        public static void Parse(string source, IMemberStructure lst)
        {

            try
            {
                var SourceFile = new FileInfo(source);

                var parameters = new ReaderParameters()
                {
                    ReadingMode = ReadingMode.Immediate,
                    AssemblyResolver = null
                };

                AssemblyDefinition assembly = AssemblyDefinition.ReadAssembly(source, parameters);

            }
            catch
            {

            }

        }

    }

}
